package com.qijian.mold.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.mold.domain.dto.GetMoldDto;
import com.qijian.mold.domain.dto.SelectMoldDto;
import com.qijian.mold.domain.entity.Mold;
import com.qijian.mold.domain.entity.MoldChangeTask;
import com.qijian.mold.domain.vo.mold.MoldListVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/** 模具仓库
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2025/3/29 17:22
 */
@Repository
public interface MoldMapper extends BaseMapper<Mold> {
    /**
     * 根据设备id获取绑定的模具
     * @param eqpId
     * @return
     */
    List<Mold> selectMoldListByEqpId(@Param("eqpId") Long eqpId);

    /**
     * 根据dto查询模具
     * @param dto
     * @return
     */
    Page<Mold> selectMoldListByDto(GetMoldDto dto);

    /**
     * 分页查询模具仓库
     * @param dto
     * @return
     */
    Page<MoldListVo> selectByPage(SelectMoldDto dto);
}
